import { defineConfig } from 'yapi-to-typescript'

export default defineConfig([
  {
    serverUrl: 'http://yapi.nongmokeji.com',
    typesOnly: false,
    target: 'typescript',
    reactHooks: {
      enabled: false,
    },
    prodEnvName: 'production',
    outputFilePath: 'utils/coding/api/index.ts',
    requestFunctionFilePath: 'utils/coding/api/request.ts',
    dataKey: 'data',
    projects: [
      {
        token: '37e51d7636275be8f521584a23ea4343a0ffe2e844af3e69595fbb5956873b86',
        categories: [



     
          {
            id: 2405,
            getRequestFunctionName(interfaceInfo, changeCase) {
              return 'User' + changeCase.pascalCase(
                interfaceInfo.parsedPath.name,
              );
            },
          },
          {
            id: 5230,
            getRequestFunctionName(interfaceInfo, changeCase) {
              return 'AI' + changeCase.pascalCase(
                interfaceInfo.parsedPath.name,
              );
            },
          }

        ],
      },
    ],
  },
])